<div class='content'>
	<div id="content_wrapper">

		<div id="breadcrumbs">
			<div id="crumbs">	
				<ul>
					<li>
					<img src="<?php echo base_url('application/views/images/weizhi.png');?>" alt="">
					文章管理
					</li>
					<li>文章类别管理</li>
					<li><a href="<?php echo site_url('admin/article_category/add');?>">添加分类</a></li>
				</ul>
			</div>
		</div>

		<div class="tb_list_wrapper">
			<table class="tr_wrapper">
				<tr>
					<th>ID</th>
					<th>类名</th>
					<th>添加时间</th>
					<th>操作</th>
				</tr>

				<?php if(isset($data)):?>

					<?php foreach($data as $item):?>
						<tr>
						<td><?php echo $item['id'];?></td>
						<td><?php echo $item['name'];?></td>
						<td><?php echo date("Y-m-d H:i:s",$item['ad_time']);?></td>
						<td>
							<a href='<?php echo site_url("admin/article_category/edit?id=").$item["id"];?>'>修改</a>
							<a href='<?php echo site_url("admin/article_category/delete?id=").$item["id"];?>' onclick="return confirm('删除这个类别？');">删除</a>
						</td>
						</tr>
					<?php endforeach;?>
				<?php endif;?>
			</table>
		</div>

	</div>
</div>
</body>
</html>